home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / strategy / xpat2-1.000 / xpat2-1 / xpat2-1.04 / Makefile < prev    next >
Makefile  |  1995-10-13  |  2KB  |  56 lines

  1. # Note: Typing 'make' from this level will rebuild xpat2 from scratch.
  2. #       Afterwards, type 'make install' (as root) to install the game
  3. #    in default directories. A manual is in the doc subdirectory.
  4. #    You may run LaTeX (2.09) on it using 'make manual'.
  5. #
  6. #       You may change src/Imakefile for different configurations.
  7. #       But then, you're on your own...
  8. #
  9. #       Should you add / improve translations, please send a copy to
  10. #       m.bischoff@tu-bs.de for inclusion in future releases.
  11.  
  12. all:
  13.     (cd src && xmkmf && $(MAKE) && strip xpat2)
  14.  
  15. manual:
  16.     (cd doc && $(MAKE) xpat2.ps)
  17.  
  18. # different install targets: imake default, local, Linux FSSTND
  19. install:
  20.     (cd src && $(MAKE) install)
  21.  
  22. install.local:
  23.     (cd src && $(MAKE) install.local)
  24.  
  25. install.fsstnd:
  26.     (cd src && $(MAKE) install.fsstnd)
  27.  
  28.  
  29. clean:
  30.     (cd src && xmkmf && $(MAKE) clean)
  31.     (cd doc && $(MAKE) clean)
  32.     rm -f src/Makefile src/xpat2X*
  33.     find . -name "*~" -exec rm \{\} \;
  34.  
  35. distrib:
  36.     $(MAKE) clean
  37.     (cd ..; tar cvfz xpat2-1.04-src.tar.gz xpat2-1.04)
  38.  
  39. bindistrib:
  40.     (cd /; tar cvfz $(HOME)/xpat2-1.04-bin.tar.gz var/games/xpat* \
  41.      usr/games/bin/xpat2 usr/man/man6/xpat2.6x usr/doc/xpat2.dvi \
  42.      usr/doc/xpat2.lsm usr/games/lib/xpat)
  43.  
  44. allinterfaces:
  45. # select a subset of Xlib Xaw Xview Motif
  46. # 'make install' will use the last one you selected
  47.     for iface in Xlib Xview Xaw;                \
  48.       do                            \
  49.       rm -f src/X*.o;                    \
  50.       sed -e "1,40s/undef use$$iface/define use$$iface/"    \
  51.          < src/Imakefile.none > src/Imakefile;        \
  52.       (cd src && xmkmf && make xpat2 && strip xpat2 &&    \
  53.          cp xpat2 xpat2$$iface);                \
  54.       cp lib/XPat.ad.$$iface src/XPat.ad;            \
  55.     done
  56.